package liuliu.throughwaring.model;

import java.io.Serializable;

import liuliu.custom.method.Utils;

/**
 * Created by Administrator on 2015/11/11.
 */
public class PoliceModel implements Serializable {
    private int id;
    /// <summary>
    /// 民警编码（长度20）。
    /// </summary>
    private String PoliceId;

    /// <summary>
    /// 所属辖区（Code_Area字典、长度12）。
    /// </summary>
    private String PoliceArea;

    /// <summary>
    /// 姓名（长度15）。
    /// </summary>
    private String PoliceName;

    /// <summary>
    /// 电话号码（长度20）。
    /// </summary>
    private String PolicePhoneNumber;

    /// <summary>
    /// 证件照片id
    /// </summary>
    private String PoliceCardImageId;
    /// <summary>
    /// 证件照片（可为null）。
    /// </summary>
    private String PoliceCardImage;

    /// <summary>
    ///民警在职状态（Code_WorkingStatus字典、长度20）。
    /// </summary>
    private String PoliceWorkingStatus;

    /// <summary>
    /// 民警信息创建时间
    /// </summary>
    private String PoliceCreateTime;

    /// <summary>
    /// 民警信息修改时间
    /// </summary>
    private String PoliceChangeTime;

    /// <summary>
    /// 民警备注（长度200）。
    /// </summary>
    private String PoliceComment;
    public String IsUpLoad;

    public String getIsUpLoad() {
        return IsUpLoad;
    }

    public void setIsUpLoad(String isUpLoad) {
        IsUpLoad = isUpLoad;
    }

    public String getInfo() {
        String info = "PoliceId=" + Utils.URLEncode(this.getPoliceId()) + "&" +
                "PoliceArea=" + Utils.URLEncode(this.getPoliceArea()) + "&" +
                "PoliceName=" + Utils.URLEncode(this.getPoliceName()) + "&" +
                "PolicePhoneNumber=" + Utils.URLEncode(this.getPolicePhoneNumber()) + "&" +
                "PoliceWorkingStatus=" + Utils.URLEncode(this.getPoliceWorkingStatus()) + "&" +
                //"PoliceCardImage=" + Utils.URLEncode(this.getPoliceCardImage) + "&" +
                "PoliceComment=" + Utils.URLEncode(this.getPoliceComment());

        if (!Utils.isEmptyString(this.getPoliceCardImage()))
            info += "&PoliceCardImage=" + Utils.URLEncodeImage(this.getPoliceCardImage());
        return info;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPoliceArea() {
        return PoliceArea;
    }

    public void setPoliceArea(String policeArea) {
        PoliceArea = policeArea;
    }

    public String getPoliceCardImage() {
        return PoliceCardImage;
    }

    public void setPoliceCardImage(String policeCardImage) {
        PoliceCardImage = policeCardImage;
    }

    public String getPoliceCardImageId() {
        return PoliceCardImageId;
    }

    public void setPoliceCardImageId(String policeCardImageId) {
        PoliceCardImageId = policeCardImageId;
    }

    public String getPoliceChangeTime() {
        return PoliceChangeTime;
    }

    public void setPoliceChangeTime(String policeChangeTime) {
        PoliceChangeTime = policeChangeTime;
    }

    public String getPoliceComment() {
        return PoliceComment;
    }

    public void setPoliceComment(String policeComment) {
        PoliceComment = policeComment;
    }

    public String getPoliceCreateTime() {
        return PoliceCreateTime;
    }

    public void setPoliceCreateTime(String policeCreateTime) {
        PoliceCreateTime = policeCreateTime;
    }

    public String getPoliceId() {
        return PoliceId;
    }

    public void setPoliceId(String policeId) {
        PoliceId = policeId;
    }

    public String getPoliceName() {
        return PoliceName;
    }

    public void setPoliceName(String policeName) {
        PoliceName = policeName;
    }

    public String getPolicePhoneNumber() {
        return PolicePhoneNumber;
    }

    public void setPolicePhoneNumber(String policePhoneNumber) {
        PolicePhoneNumber = policePhoneNumber;
    }

    public String getPoliceWorkingStatus() {
        return PoliceWorkingStatus;
    }

    public void setPoliceWorkingStatus(String policeWorkingStatus) {
        PoliceWorkingStatus = policeWorkingStatus;
    }

}
